<?php 
/*************************************************************************************
 *
 *	FileName: page_body.php
 *	Desc    : main outbox page
 *	Author  : Seal
 *	Date    : 2010-1-2
 *
 *************************************************************************************/
 ?>
    <div class="main_box">
<!--left_bar star-->    
    	<div class="left_bar">
        <!--*********************-->
            
<!--收件箱-->	
			<div class="mail_box" >
                	<div class="mail_box_top"></div>
					<!--orange_top star-->
                    <div class="mail_box_middle">
                    	<div class="mail_box_title">收件箱</div>
						<div class="mail_common_bar">         
                                <h3><a href="<?php echo edp_href_link(PAGENAME_WRITE_MESSAGE)?>"></a></h3>
                                <h4><a href="javascript: send_del_letter_request();"></a></h4>                       
                              
                        </div>
                        
                        
						<div class="mail_top1">
                        	<h1>标题</h1><h2>收件人</h2><h3>收件时间</h3>                         
                        </div>
						<div class="mail_top2">
							<input type="checkbox" onclick="SelectAllLetters(this);"/> 选择全部                     
                        </div>
						
												 
						 <?php 
					
							if( $letters )
							{
								foreach( $letters as $key => $value ){
						?>
						
						   <div class="mail_item">
                            <table class="mail_item_title">
                                 <tr>                                                              
                                 	<td class="title_1_2" id="letterzone">
                                		 <input type="checkbox" value="<?php echo $value['id']?>">
                                 		<a href="#" onClick="show_content1(this,<?php echo $value['id']?>);" id="item_title_<?php echo $value['id']?>"><?php secho( $value['title'] ); ?></a>
                                 	</td>
                                    <td class="title_2"><?php secho( $value['receiver_name'] ); ?></td>
                                    <td class="title_3"><?php echo $value['date']?></td></tr>
                            </table>
                            
                            <div class="mail_item_content" id="item_content_<?php echo $value['id']?>" style="display:none">
                            <div class="content_1"></div>
                            <div class="content_2">
	                            <h6><a href="#" onClick="close_content(<?php echo $value['id']?>);"></a></h6>
	                            <h5><a href="#" onClick="del_item(<?php echo $value['id']?>, this);"></a></h5>
	                           <!--  <h4><a href="#"></a></h4>-->
	                            
	                        </div>
                            </div>
                            
                        </div>

						<?php 
								}
							}
						?>                       
                                                              
						<?php echo $page->getBar(); ?>
                     
                    </div>

                    <div class="mail_box_bottom"></div><!--底部边框-->
            </div>

		</div>
<!--left_bar end-->

<!--right_bar star-->
        <div class="right_bar">
		    <div class="right_bar_menu"><!--右侧按钮-->
            	<ul class="right_bar_menu_item">
                    <li><a href="<?php echo edp_href_link( PAGENAME_WRITE_MESSAGE)?>">写站内信</a></li>
                    <li><a href="<?php echo edp_href_link( PAGENAME_MAIL_INBOX)?>">收件箱</a></li>
                    <li><a href="<?php echo edp_href_link( PAGENAME_MAIL_OUTBOX)?>">发件箱</a></li>
                </ul>
            </div>
            
        
        </div>
<!--right_bar end-->        
 
 
   <div id="div_reply" style="display:none">
    <input type="text" id="replytitle" value="" />
   	<textarea id="replycontent" ></textarea>
   	<input type="button" value="回复" id="bt_send_reply" />
   	<input type="button" value="取消" id="bt_close" />
 </div>
 
 
 
 

